package file;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


public class TestIP {

	public static void main(String[] args) throws ParseException {
//		System.out.println("ip:"+NetUtils.getLocalHost());
		Date d = new Date();
		SimpleDateFormat datefmt10 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		Date d1 = datefmt10.parse("2017-11-29 10:15:00");
		Date d2 = datefmt10.parse("2017-11-29 10:45:00");
		System.out.println(d2.getTime() - d1.getTime());

	}

}
